#include <Python.h>
static PyObject*
helloworld(PyObject* self,PyObject* args)
{
	PyObject *tu=NULL;
	if (!PyArg_ParseTuple(args,"O",&tu))
	{
		printf("error");
		return NULL;
	}
	PyObject_Print(tu, stdout, 0); 
	printf("\n");
	Py_INCREF(Py_None);
	return Py_None;
	
}

static char helloworld_docs[] =
    "helloworld( ): return a popular greeting phrase\n";

static PyMethodDef helloworld_funcs[] = {
    {"helloworld", helloworld, METH_VARARGS, helloworld_docs},
    {NULL}
};

void inithelloworld(void)
{
    Py_InitModule3("helloworld", helloworld_funcs,
                   "Toy-level extension module");
}

